//
//  LoginWithPhoneViewController.m
//  Hui
//
//  Created by HawkingWang on 16/10/27.
//  Copyright © 2016年 Hui. All rights reserved.
//

#import "LoginWithPhoneViewController.h"
#import "LoginWithAccountViewController.h"//同城惠账户登录Controller
#import "RegisterViewController.h"//注册Controller

@interface LoginWithPhoneViewController ()
@property (weak, nonatomic) IBOutlet UIButton *sendCode;
@property (weak, nonatomic) IBOutlet UITextField *phone;
@property (weak, nonatomic) IBOutlet UITextField *code;


@end

@implementation LoginWithPhoneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
    _sendCode.layer.borderWidth = 0.5;
    _sendCode.layer.borderColor = RGBCOLOR(153, 186, 209).CGColor;
}
- (void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = YES;
}

//注册
- (IBAction)registerr:(id)sender {
    RegisterViewController *regi = [[RegisterViewController alloc] init];
    [self.navigationController pushViewController:regi animated:YES];
}
//发送验证码
- (IBAction)sendCode:(id)sender {
    DLog(@"发送验证码");
}
//登录
- (IBAction)login:(id)sender {
    [SVProgressHUD show];
    [SVProgressHUD showSuccessWithStatus:@"登陆成功!"];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [SVProgressHUD dismiss];
        [self.navigationController popToRootViewControllerAnimated:YES];
    });
}
//同城惠账户登录
- (IBAction)HuiAccountLogin:(id)sender {
    LoginWithAccountViewController *account = [[LoginWithAccountViewController alloc] init];
    [self.navigationController pushViewController:account animated:YES];
}


- (IBAction)back:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
